Skip to content

[Python] run [write/compare] in isolated process - #117

Merged
hugtalbot merged 1 commit into
sofa-framework:masterfrom
fredroy:isolate_tests
Aug 6, 2026
Merged

[Python] run [write/compare] in isolated process#117
hugtalbot merged 1 commit into
sofa-framework:masterfrom
fredroy:isolate_tests

Conversation

@fredroy

@fredroy fredroy commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

EDIT: Based on

While trying to use the new python regression suite on BeamAdapter, I stumbled on a weird problem:
after generating regression data and then immediately check the tests, there was a regression error in 3instruments_collis.
After investigation, by Claude, it appears that if the regression tests are done individually, no errors are reported.
The conclusion is that there are some leaks in BeamAdapter (statics/?) polluting the sequence of tests.

The general solution (because it can appear in other situations) is to isolate each test, in their own process, to guarantee the correctness/consistency of the test(s).

@hugtalbot
hugtalbot merged commit a8fde55 into sofa-framework:master Aug 6, 2026
@fredroy
fredroy deleted the isolate_tests branch August 6, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants